package com.fsy.algorithm;

/**
 * Created by shuangyufeng on 2017/5/5.
 */
public class Tuzi {

    public static void main(String[] args){
        int num = getNum(6);
        System.out.print("num == " + num);
    }

    private static int getNum(int value){
        if(value < 3){
            return 1;
        }else{
            return getNum(value - 2) + getNum(value - 1);
        }
    }
}
